package com.stone.jvm;

/**
 * JDK6 VS JDK7/8
 */
public class StringTest {
    static final String[] arr = new String[10000000];
    public static void main(String[] args) {
        //Integer[] data = new Integer[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        //for (int i = 0; i < 10000000; i++) {
        //    arr[i] = new String(String.valueOf(data[i % data.length])); // 方式一
        //    arr[i] = new String(String.valueOf(data[i % data.length])).intern(); // 方式二
        //}

        System.out.println(Integer.MAX_VALUE);
    }
}
